<div class="commentsbox">
	<div class="commentstop">
		<div class="commentstopleft">
			<?php if($showCommentsForm && $comments->count()): ?>
				<a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product['id']) ?>"><?php echo __('Kommentaarid') ?> <span>(<?php echo count($comments) ?>)</span></a>
			<?php elseif(!$showCommentsForm): ?>
				<?php echo __('Kommentaarid') ?> <span>(<?php echo count($comments) ?>)</span>
			<?php endif; ?>
		</div>
		<div class="commentstopright">
			<?php if($showCommentsForm): ?>
				<?php echo __('Jäta kommentaar') ?>
			<?php else: ?>
				<a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product['id'], array('write' => '1')) ?>"><?php echo __('Jäta kommentaar') ?></a>
			<?php endif; ?>
		</div>
		<div class="clear"></div>
	</div>
	<div class="commentscontent">
		<a name="comments"></a>
		<?php if(0 === $comments->count() || $showCommentsForm ):?>
			<?php include_partial('productPage/commentsForm', array('commentsForm' => $commentsForm, 'product' => $product))?>
		<?php else:?>
			<?php include_partial('productPage/commentsList', array('comments' => $comments ))?>
		<?php endif;?>
	</div>
</div>